<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Sol简易浏览器首页</title>
    <style>
        body {
            font-family: 'Arial', sans-serif;
            background-color: #f5f5f5;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            height: 100vh;
            color: #333;
        }
        
        .container {
            width: 100%;
            max-width: 600px;
            margin-top: 100px;
            text-align: center;
        }
        
        .logo {
            font-size: 36px;
            margin-bottom: 30px;
            color: #4285f4;
        }
        
        .search-box {
            width: 100%;
            position: relative;
        }
        
        #search-input {
            width: 100%;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 24px;
            font-size: 16px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            outline: none;
        }
        
        #search-input:focus {
            border-color: #4285f4;
        }
        
        .search-button {
            background-color: #4285f4;
            color: white;
            border: none;
            padding: 10px 20px;
            margin-top: 20px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
        }
        
        .search-button:hover {
            background-color: #3367d6;
        }
        
        .quick-links {
            margin-top: 40px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 15px;
        }
        
        .quick-link {
            background-color: white;
            padding: 10px 15px;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            text-decoration: none;
            color: #333;
            transition: all 0.2s;
        }
        
        .quick-link:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="logo">Sol的浏览器</div>
        
        <div class="search-box">
            <input type="text" id="search-input" placeholder="输入网址或搜索内容...">
        </div>
        
        <button class="search-button" onclick="performSearch()">搜索</button>
        
        <div class="quick-links">
            <a href="https://www.baidu.com" class="quick-link">百度</a>
            <a href="https://www.google.com" class="quick-link">Google</a>
            <a href="https://www.github.com" class="quick-link">GitHub</a>
            <a href="https://www.zhihu.com" class="quick-link">知乎</a>
            <a href="https://www.bilibili.com" class="quick-link">哔哩哔哩</a>
            <a href="https://www.weibo.com" class="quick-link">微博</a>
            <a href="https://amazing.fqbvibd.com/" class="quick-link">黄片网站</a>    
            <a href="http://121.37.129.238:8080/abc" class="quick-link">不是黄片</a>    
            <a href="https://www.omofun2.xyz/" class="quick-link">看番网站</a>    

        </div>
    </div>

    <script>
        function performSearch() {
            const query = document.getElementById('search-input').value.trim();
            if (query === '') return;
            
            // 检查是否是网址
            if (query.includes('.') || query.startsWith('http://') || query.startsWith('https://')) {
                let url = query;
                if (!url.startsWith('http://') && !url.startsWith('https://')) {
                    url = 'http://' + url;
                }
                window.location.href = url;
            } else {
                // 默认使用百度搜索
                window.location.href = `https://www.baidu.com/s?wd=${encodeURIComponent(query)}`;
            }
        }
        
        // 按回车键触发搜索
        document.getElementById('search-input').addEventListener('keypress', function(e) {
            if (e.key === 'Enter') {
                performSearch();
            }
        });
    </script>
</body>
</html>